#  正则表达式： 匹配 字符串

import re
# ret = re.findall('a[bc]d','acmsacdafadadscn')
# print(ret)
# ret2 = re.findall('a[a-z]x','adxsadfx')
# print(ret2)
#
# ret3 = re.findall('[.*+]','a.cd+')
# print(ret3)
# ret4  = re.findall('[1-9]','45dha3')
# print(ret4)

# m  = re.findall(r'(ad)+','add')
# print(m)


ret = re.search('(?P<name>\w{3})/(?P<age>\d{2})','45saf/33"a"432')

print(ret)
print(ret.group())
print(ret.group('name'))
print(ret.group('age'))
















